#!/usr/bin/env bash


# INFO --------------------------------------------------------
# Name: obios
# Developer: Guilherme Machado
# Version: 0.2
#--------------------------------------------------------------


# FUNÇÕES -----------------------------------------------------
ctrl_c ()

{
   printf "\n\tSaindo...\n"
   sleep 2 && exit 0
}

#--------------------------------------------------------------


# TESTES ------------------------------------------------------
[ $(id -u) -ne 0 ] \
&& printf -e "\n\n\tLogue-se como root para prosseguir.\n\n" \
&& exit 1
#-------------------------------------------------------------


# PROGRAMA ---------------------------------------------------
trap ctrl_c INT
printf "\n\n\tInstalando pacotes...\n\n"
sleep 2s
xbps-install openbox sakura nitrogen compton mousepad mpv xset \
tint2 gpicview obconf lxappearance-obconf slim slim-void-theme \
plank rofi menu-cache lxmenu-data udiskie dejavu-fonts-ttf \
pulseaudio pavucontrol chromium cmatrix noto-fonts-ttf xmodmap \
Thunar dejavu-fonts-ttf xreader scrot xf86-input-synaptics \
xfce4-screenshooter deluge obmenu thunar-archive-plugin conky \
cmatrix tty-clock grive2 curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
sleep 2 && printf "\n\n\tInstalação completa.\n\n"
exit 0
#--------------------------------------------------------------
